
package CCT220_Aula11_Exercicio01_13106;


import java.util.ArrayList;
import java.util.Random;


/**
 * ******************************
 * Project: CCT220
 * Package: CCT220_Aula11_Exercicio01_13106
 * Class: TestaVeiculo
 * Last Change: 22/09/2011 14:45:14
 * Description:
 * ******************************
 * 
 * @author marcel
 * @author 13106
 * 
 */
public class TestaVeiculo {
	/**
	 * ******************************
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: TestaVeiculo
	 * Method: main
	 * Last Change: 22/09/2011 14:45:33
	 * Description: Main method that runs the test in this sample
	 * ******************************
	 * 
	 * @param args
	 */
	public static void main(String[] args) {

		Random r = new Random();
		ArrayList<Motorizado> m = new ArrayList<Motorizado>();
		ArrayList<Conduzivel> c = new ArrayList<Conduzivel>();

		m.add(new Carro("Vectra", 5, 20, "sedam", 1500, false, 50));
		m.add(new Aviao("Boeing", 150, 200, 1500, 4, false, 500));
		m.add(new Carro("Gol", 5, 20, "adventure", 1000, true, 40));

		c.add(new Carro("Gol", 5, 20, "sedam", 1500, true, 50));
		c.add(new Aviao("Boeing", 150, 200, 1500, 4, true, 500));
		c.add(new Bicicleta("Caloi", 1, 2, "cross", 25));

		for (Motorizado x : m) {
			x.ligarMotor();
		}
		for (Conduzivel x : c) {
			x.curvar(r.nextInt(80));
		}

	}

}
